#pragma once
#include"common.h"
#include"CentralCache.h"
class ThreadCache
{
	FreeList _freelists[NFREELISTS];
public:
	void* Allocate(size_t size);
	void Dellocate(void*obj,size_t size);
	void* Fetchfromcentral(size_t index,size_t size);
	void TooLongList(FreeList& list, size_t size);
};
static _declspec(thread) ThreadCache* pTLSThreadCache = nullptr; 

